package com.yonyou.jrmob.application.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Marvin on 2017/4/24.
 */

public class HomePageBean implements Serializable {
    /**
     * result : {"msg":"成功","app_arr":[{"app_name":"保险经纪系统","app_url":"http://dev-test.bj.imfbp.com/imfbp-bx-web/","logo_url":"http://dev-test.misc.imfbp.com/ifbp-misc-web//misc/img/index/bxjj.png","type":"1","app_pk":"6"},{"app_name":"在线CRM","app_url":"http://dev-test.yx.imfbp.com/imfbp-crm-web/","logo_url":"http://dev-test.misc.imfbp.com/ifbp-misc-web//misc/img/index/yx.png","type":"1","app_pk":"16"}],"notify_arr":[{"date":"2016-09-27 16:30:23","submitter":"k1","title":"贷后监查","type":"2","content":"k1提交单据:XD1609000032,请审批","notify_pk":"19"},{"date":"2016-10-27 11:16:09","submitter":"ltj2","title":"投保单","type":"2","content":"ltj2提交单据:BD1610000004,请审批","notify_pk":"89"},{"date":"2016-10-31 13:33:12","submitter":"1","title":"佣金计提","type":"2","content":"1提交单据:BD1610000036,请审批","notify_pk":"108"},{"date":"2016-11-03 20:04:35","submitter":"财三","title":"手续费计提","type":"2","content":"财三提交单据:BD1611000116,请审批","notify_pk":"155"}],"retflag":"0"}
     */

    @Override
    public String toString() {
        return "ResultBean{" +
                "msg='" + msg + '\'' +
                ", retflag='" + retflag + '\'' +
//                ", app_arr=" + app_arr.toString() +
                ", notify_arr=" + notify_arr.toString() +
                '}';
    }

    /**
     * msg : 成功
     * app_arr : [{"app_name":"保险经纪系统","app_url":"http://dev-test.bj.imfbp.com/imfbp-bx-web/","logo_url":"http://dev-test.misc.imfbp.com/ifbp-misc-web//misc/img/index/bxjj.png","type":"1","app_pk":"6"},{"app_name":"在线CRM","app_url":"http://dev-test.yx.imfbp.com/imfbp-crm-web/","logo_url":"http://dev-test.misc.imfbp.com/ifbp-misc-web//misc/img/index/yx.png","type":"1","app_pk":"16"}]
     * notify_arr : [{"date":"2016-09-27 16:30:23","submitter":"k1","title":"贷后监查","type":"2","content":"k1提交单据:XD1609000032,请审批","notify_pk":"19"},{"date":"2016-10-27 11:16:09","submitter":"ltj2","title":"投保单","type":"2","content":"ltj2提交单据:BD1610000004,请审批","notify_pk":"89"},{"date":"2016-10-31 13:33:12","submitter":"1","title":"佣金计提","type":"2","content":"1提交单据:BD1610000036,请审批","notify_pk":"108"},{"date":"2016-11-03 20:04:35","submitter":"财三","title":"手续费计提","type":"2","content":"财三提交单据:BD1611000116,请审批","notify_pk":"155"}]
     * retflag : 0
     */

    private String msg;
    private String retflag;
//    private List<AppArrBean> app_arr;
    private List<NotifyArrBean> notify_arr;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getRetflag() {
        return retflag;
    }

    public void setRetflag(String retflag) {
        this.retflag = retflag;
    }

//    public List<AppArrBean> getApp_arr() {
//        return app_arr;
//    }
//
//    public void setApp_arr(List<AppArrBean> app_arr) {
//        this.app_arr = app_arr;
//    }

    public List<NotifyArrBean> getNotify_arr() {
        return notify_arr;
    }

    public void setNotify_arr(List<NotifyArrBean> notify_arr) {
        this.notify_arr = notify_arr;
    }

//    public static class AppArrBean implements Serializable{
//
//        @Override
//        public String toString() {
//            return "AppArrBean{" +
//                    "app_code='" + app_code + '\'' +
//                    ", app_name='" + app_name + '\'' +
//                    ", app_url='" + app_url + '\'' +
//                    ", logo_url='" + logo_url + '\'' +
//                    ", type='" + type + '\'' +
//                    ", app_pk='" + app_pk + '\'' +
//                    '}';
//        }
//
//        /**
//         * app_name : 保险经纪系统
//         * app_url : http://dev-test.bj.imfbp.com/imfbp-bx-web/
//         * logo_url : http://dev-test.misc.imfbp.com/ifbp-misc-web//misc/img/index/bxjj.png
//         * type : 1 通知  2  待办   3   预警
//         * app_pk : 6
//         * app_code : XDA
//         */
//        private String app_code;
//        private String app_name;
//        private String app_url;
//        private String logo_url;
//        private String type;
//        private String app_pk;
//
//        public String getApp_name() {
//            return app_name;
//        }
//
//        public void setApp_name(String app_name) {
//            this.app_name = app_name;
//        }
//
//        public String getApp_url() {
//            return app_url;
//        }
//
//        public void setApp_url(String app_url) {
//            this.app_url = app_url;
//        }
//
//        public String getLogo_url() {
//            return logo_url;
//        }
//
//        public void setLogo_url(String logo_url) {
//            this.logo_url = logo_url;
//        }
//
//        public String getType() {
//            return type;
//        }
//
//        public void setType(String type) {
//            this.type = type;
//        }
//
//        public String getApp_pk() {
//            return app_pk;
//        }
//
//        public void setApp_pk(String app_pk) {
//            this.app_pk = app_pk;
//        }
//
//        public String getApp_code() {
//            return app_code;
//        }
//
//        public void setApp_code(String app_code) {
//            this.app_code = app_code;
//        }
//    }

    public static class NotifyArrBean {
        @Override
        public String toString() {
            return "NotifyArrBean{" +
                    "date='" + date + '\'' +
                    ", submitter='" + submitter + '\'' +
                    ", title='" + title + '\'' +
                    ", type='" + type + '\'' +
                    ", content='" + content + '\'' +
                    ", notify_pk='" + notify_pk + '\'' +
                    '}';
        }

        /**
         * date : 2016-09-27 16:30:23
         * submitter : k1
         * title : 贷后监查
         * type : 2
         * content : k1提交单据:XD1609000032,请审批
         * notify_pk : 19
         */

        private String date;
        private String submitter;
        private String title;
        private String type;
        private String content;
        private String notify_pk;

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public String getSubmitter() {
            return submitter;
        }

        public void setSubmitter(String submitter) {
            this.submitter = submitter;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getNotify_pk() {
            return notify_pk;
        }

        public void setNotify_pk(String notify_pk) {
            this.notify_pk = notify_pk;
        }
    }
}
